package com.zxl.gtion.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * (Answer)表实体类
 *
 * @author 
 * @since 2024-03-06 16:41:29
 */
@Data
public class Answer extends BaseDomain {
    //主键id
    @TableId(type = IdType.AUTO)
    private Integer id;
    //答案所属题目id
    private Integer subjectId;
    //答案信息
    private String answer;
    //此答案是否正确（1：正确 2：错误）
    private String type;

    public static final String NO_USER_ANSWER = "0";
    public static final String IS_USER_ANSWER = "1";

    @TableField(exist = false)
    @ApiModelProperty("是否是用户选择的答案（0 不是 1：是）")
    private String isUserAnswer;
}

